package com.wosai.register.repository;

import java.util.List;

import com.wosai.register.model.Order;

public interface OrderRepository {
    Order findById(String merchantId, String branchId, String terminalId, String id);
    List<Order> findByTerminal(String merchantId, String branchId, String terminalId, int offset, int size, String startDate, String endDate);

    List<String> insertBatch(List<Order> orders);
    List<String> updateBatch(List<Order> orders);
    
    void delete(String merchantId, String branchId, String terminalId, String id);
    void deleteByTerminal(String merchantId, String branchId, String terminalId);
}
